package com.buybuyyi.stylistcrm.resource.goods.dao.impl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Repository;

import com.buybuyyi.stylistcrm.resource.goods.dao.DicClassificationsDao;
import com.buybuyyi.stylistcrm.resource.goods.mapper.DicClassificationsMapper;
import com.buybuyyi.stylistcrm.resource.goods.po.DicClassification;

@Repository
public class DicClassificationsDaoImpl implements DicClassificationsDao {

	@Autowired
	DicClassificationsMapper dicClassificationsMapper;
	
	@Override
	public Long deleteByPrimaryKey(Long id) {
		return dicClassificationsMapper.deleteByPrimaryKey(id);
	}

	@Override
	public Long insert(DicClassification record) {
		return dicClassificationsMapper.insert(record);
	}

	@Override
	public Long insertSelective(DicClassification record) {
		return dicClassificationsMapper.insertSelective(record);
	}

	@Override
	public DicClassification selectByPrimaryKey(Long id) {
		return dicClassificationsMapper.selectByPrimaryKey(id);
	}

	@Override
	public Long updateByPrimaryKeySelective(DicClassification record) {
		return dicClassificationsMapper.updateByPrimaryKey(record);
	}

	@Override
	public Long updateByPrimaryKey(DicClassification record) {
		return dicClassificationsMapper.updateByPrimaryKey(record);
	}

	@Override
	public List<DicClassification> getAllDicClassifications() {
		return dicClassificationsMapper.getAllDicClassifications();
				
	}
	
}